package com.lcxw.hxzbapi.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbapi.dao.mapper.DuanweiMapper;
import com.lcxw.hxzbapi.entity.pojo.Duanwei;

@Component
public class DuanweiService {

    @Resource
    DuanweiMapper duanweiMapper;

    public int deleteByPrimaryKey(Integer id){
        return duanweiMapper.deleteByPrimaryKey(id);
    }

   public  int insert(Duanwei record){
        return duanweiMapper.insert(record);
   }

   public Duanwei selectByPrimaryKey(Integer id){
        return duanweiMapper.selectByPrimaryKey(id);
    }

    public List<Duanwei> selectAll(){
        return duanweiMapper.selectAll();
    }

    public int updateByPrimaryKey(Duanwei record){
        return duanweiMapper.updateByPrimaryKey(record);
    }
}
